
package de.uni.wuppertal.server;

import javax.swing.ImageIcon;

import de.uni.wuppertal.server.util.Resource;

/**
 * @author Martin Schröder
 * @author Patrik Nordsiek
 */
public class ErrorLogEntry extends LogEntry
{
	protected static ImageIcon icon = Resource.getIcon("icon/error.png");
	
	public ErrorLogEntry(String message)
	{
		this.message = new String(message);
	}
	
	public ErrorLogEntry(Throwable e)
	{
		message = "[" + e.getClass().getName() + "] " + e.getMessage();
	}
	
	@Override
	public ImageIcon getIcon()
	{
		return icon;
	}
}
